package com.yhclient.yhclient1.controller;

import com.yhclient.yhclient1.config.SysConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: TestController.java
 * @author: yuhui
 * @version: 1.0.0
 * @Description: 配置状态检查
 * @createTime: 2021年07月25日 15:15:00
 */
@RestController
public class TestController {

    @Autowired
    private SysConfig sysConfig;

    @GetMapping("cfg")
    public String cfgStatus(){
        return "姓名："+sysConfig.getName() +"-----年龄"+sysConfig.getAge();
    }
}
